git-x86_64-remove-pie-check
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 28 Aug 2021 19:29:36 +0000 (20:29 +0100)
committerRaspbian forward porter <root@raspbian.org>
Sat, 28 Aug 2021 19:29:36 +0000 (20:29 +0100)
commit9e8f8f6af084bd34e7a1aadef676d9cac4dfedc7
tree14c2bd111ec038b9d00e22d10c337989b0d13ee6
parentffd2060c92aa66a477e71c1f65533e7ff6f060c4
git-x86_64-remove-pie-check

commit 115d242456de158e698ffb0f9a5fee3118e9e825
Author: Fangrui Song <maskray@google.com>
Date:   Thu Jul 8 14:26:22 2021 -0700

    x86_64: Remove unneeded static PIE check for undefined weak diagnostic

    https://sourceware.org/bugzilla/show_bug.cgi?id=21782 dropped an ld
    diagnostic for R_X86_64_PC32 referencing an undefined weak symbol in
    -pie links.  Arguably keeping the diagnostic like other ports is more
    correct, since statically resolving movl foo(%rip), %eax to the
    link-time zero address produces a corrupted output.

    It turns out that --enable-static-pie builds do not depend on the ld
    behavior. GCC generates GOT indirection for weak declarations for
    -fPIE/-fPIC, so what ld does with the PC-relative relocation doesn't
    really matter.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Gbp-Pq: Topic amd64
Gbp-Pq: Name git-x86_64-remove-pie-check.diff
sysdeps/x86_64/configure
sysdeps/x86_64/configure.ac